package cc.iotkit.manager.dto.vo.alert;

import cc.iotkit.common.excel.convert.ExcelTimestampConvert;
import cc.iotkit.model.alert.AlertRecord;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serializable;

@Data
@AutoMapper(target = AlertRecord.class, convertGenerate = false)
public class AlertRecordVo implements Serializable {
    /**
     * 告警时间
     */
    @ExcelProperty(value = "告警时间",converter = ExcelTimestampConvert.class)
    private Long alertTime;

    @ExcelProperty(value = "客户名称")
    private String companyName;
    /**
     * 告警名称
     */
    @ExcelProperty(value = "告警名称")
    private String name;

    /**
     * 告警严重度（1-5）
     */
    @ExcelProperty(value = "告警严重度")
    private String level;



    /**
     * 告警详情
     */
    @ExcelProperty(value = "告警详情")
    private String details;

    @ExcelProperty(value = "设备ID")
    private String deviceId;
    @ExcelProperty(value = "产品名称")
    private String productName;
    @ExcelProperty(value = "产品Key")
    private String productKey;
    @ExcelProperty(value = "机器人SN")
    private String robotSn;
    @ExcelProperty(value = "型号")
    private  String modelName;
}
